package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.UserGetListTask.UserGetListRequest;
import com.smiier.skin.net.UserGetListTask.UserGetListResponse;
import com.smiier.skin.net.entity.UserWrapper;
import com.smiier.skin.util.GlobalSettings;

/**
 * 查询用户列表
 * 
 * @author 杨文华
 * 
 */
public class UserGetListTask extends
		NetTask<UserGetListRequest, UserGetListResponse> {

	public static class UserGetListRequest extends ORequest {
		public static final int DEFAULT_RECOMMEND_NO = 0;
		public static final int DEFAULT_RECOMMEND_YES = 1;

		public int Default = DEFAULT_RECOMMEND_NO;

		public Long StartID;
		public int pageSize;

		public int User_Typ = 1;
		public String KeyWord;
		public String Province;
		public String City;
		public String County;
		public Integer Sex;
		public String Hospital;
		public String Skilled;
		public Integer Is_Cert;
		public String token;
		public ArrayList<String> Symptoms;
		public ArrayList<Integer> statuses;
		public String appname = Constant.APP_NAME;
	}

	public static class UserGetListResponse extends OResponse {
		public UserList Res;
	}

	public static class UserList implements INoProguard {
		public int Count;
		public ArrayList<UserWrapper> Users;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=User.GetList";
		mRequestMethod = METHOD_GET;
	}

}
